<%--
  Created by IntelliJ IDEA.
  User: xinlong
  Date: 2017/10/17
  Time: 14:21
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>userInfo</title>
    <%@include file="/resources/common/head.jsp" %>
    <script src="/resources/script/wetravel.js" type="text/javascript"></script>
    <script src="/resources/css/wetravel.css" type="text/css"></script>
</head>
<body>
<div class="container">
    <div class="row" style="padding-top: 7px">
        <label class="col-sm-2 text-right" for="username">用户名：</label>
        <div class="col-sm-8 text-left" id="username">
            <c:out value="${sessionScope.currentUser.username}"/>
        </div>
    </div>
    <div class="row" style="padding-top: 7px" >
        <label class="col-sm-2 text-right" for="email">邮箱：</label>
        <div class="col-sm-8 text-left" id="email">
            <c:out value="${sessionScope.currentUser.email}"/>
        </div>
    </div>
    <div class="row" style="padding-top: 7px" >
        <label class="col-sm-2 text-right" for="phone">手机号：</label>
        <div class="col-sm-8 text-left" id="phone">
            <c:out value="${sessionScope.currentUser.phone}"/>
        </div>
    </div>
    <div class="row" style="padding-top: 7px" >
        <label class="col-sm-2 text-right" for="role">权限：</label>
        <div class="col-sm-8 text-left" id="role">
            <c:if test="${sessionScope.currentUser.role==1}" >
                <c:out value="管理员" />
            </c:if>
            <c:if test="${sessionScope.currentUser.role==0}" >
                <c:out value="用户" />
            </c:if>
        </div>
    </div>
    <div class="row" style="padding-top: 7px" >
        <label class="col-sm-2 text-right" for="createTime">注册时间：</label>
        <div class="col-sm-8 text-left" id="createTime">
            <c:out value="${sessionScope.currentUser.createTime}"/>
        </div>
    </div>
</div>
</body>
</html>
